package com.feige.constant;

public interface Constants {
    /**
     * 统一返回结果对应值标志
     */
    String CODE_TAG = "code";
    String MSG_TAG = "msg";
    String DATA_TAG = "data";

    /**
     * 枚举状态码和提示信息
     */
    int SUCCESS_CODE = 200;
    int ERROR_CODE = 500;
    String SUCCESS_MSG = "success";
    String ERROR_MSG = "error";

    /**
     * jwt秘钥
     */
    String APP_SECRET = "ukc8BDbRigUDaY6pZFfWus2jZWLPHO";
    /**
     * token过期时间
     */
    String TOKEN_KEY = "token";
    int TOKEN_EXPIRE = 2 * 60 * 60;
    /**
     * 登录用户key
     */
    String LOGIN_USER_KEY = "login_user:";
    /**
     * 验证码key,验证码过期时间
     */
    String CAPTCHA_CODE_KEY = "captcha";
    long CAPTCHA_CODE_EXPIRE = 5*60L;

    /**
     * key过期时间
     */
    long Key_EXPIRE = TOKEN_EXPIRE / 2;

    /**
     * token过期相差小于20分钟则刷新缓存
     */
    long TWENTY_MINUTE = 20 * 60L;

    /**
     * 管理员在数据库中的数据
     */
    String ADMIN_NUM = "2018143114";
    String ADMIN_PHONE_NUMBER = "15368760414";
    String ADMIN_EMAIL = "1835698775@qq.com";

    /**
     * 超级管理员角色在数据库中的数据
     */
    Integer SUPER_ADMIN_ROLE_ID = 1;
    String SUPER_ADMIN_ROLE_NAME = "超级管理员";

    /**
     * 自定义异常码
     */
    Integer CAPTCHA_ERROR = 5079;
    Integer CAPTCHA_EXPIRE = 5063;
    Integer USER_NOT_FOUND = 5000;
    Integer USER_DISABLE = 4002;


}
